import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

// main.js

import axios from 'axios'
const app = createApp(App)
createApp(App).use(store).use(router).mount('#app')

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
// 全局挂载 axios
app.config.globalProperties.$http = axios
// app.config.globalProperties.getDicts = getDicts
app.use(router)
app.use(ElementPlus)
app.mount('#app')